<template>
	<view class="marry-container">
		<view class="section01">
			<view>签小查</view>
			<view class="topic"></view>
			<view class="banner"></view>
		</view>

		<keyword :userId="userId" :productId="4" btnbg="#FB5288" textbg="#333333">
			<template v-slot:head>
				<view style="text-align: center;">
					<image src="@/static/images/bgcx.png" id="head_img"></image>
				</view>
			</template>
			<template v-slot:tips>
				<view></view>
			</template>
		</keyword>
		
		<view class="section03">
			<image src="@/static/images/cxxz.png" class="title"></image>
			<view class="content">
				<view class="content-box">
					<view class="top">
						<view class="avatar">
							<image src="/static/images/avatar.jpg" mode="widthFix" class="img"></image>
						</view>
						<view class="title">可以查询他人婚姻吗</view>
					</view>

					<view class="line"></view>
					<view class="bottom">
						<view class="text">
							查询只针对本人，需要被查询人同意授权且人脸识别验证本人
						</view>
						<view class="person-box">
							<image src="@/static/images/avatar.jpg" class="person" />
							<image src="@/static/images/2.png" class="person" />
							<image src="@/static/images/avatar.jpg" class="person" />
						</view>
					</view>
				</view>

				<view class="content-box">
					<view class="top">
						<view class="avatar">
							<image src="/static/images/avatar.jpg" mode="widthFix" class="img"></image>
						</view>
						<view class="title">我的案件销案了为什么还在</view>
					</view>

					<view class="line"></view>

					<view class="bottom">
						<view class="text">
							联系人工客服消除案件即可
						</view>
						<view class="person-box">
							<image src="@/static/images/avatar.jpg" class="person" />
							<image src="@/static/images/2.png" class="person" />
							<image src="@/static/images/avatar.jpg" class="person" />
							<view class="person"></view>
						</view>
					</view>
				</view>
			</view>
		</view>

	</view>
</template>

<script>
	import keyword from '@/components/keyword.vue'

	export default {
		components: {
			keyword
		},
		data() {
			return {
				userId: null,
				remark: null
			}
		},
		onLoad(event) {
			// 若不来自推荐，算作管理员的
			this.userId = event.ui ? event.ui : 1
			this.remark = event.ui ? null : '无推送'
		}
	}
</script>

<style scoped lang="scss">
	.marry-container {
		width: 100vw;
		background: url("@/static/images/marry-bg.png") no-repeat 0 0/ cover;
		padding: 44rpx 32rpx;
		box-sizing: border-box;
		font-family: PingFang SC, PingFang SC;

		.section01 {
			margin-top: 20rpx;
			font-size: 36rpx;
			color: #fff;
			text-align: center;

			.topic {
				width: 100%;
				height: 170rpx;
				margin-top: 30rpx;
				background: url("@/static/images/topic.png") no-repeat center center / contain;
			}

			.banner {
				height: 620rpx;
				width: 100%;
				background: url("@/static/images/banner.png") no-repeat center center / contain;
				margin-top: 48rpx;
			}
		}
		
		.section03 {
			//height: 632rpx;
			width: 100%;
			border-radius: 24rpx;
			box-shadow: 0px 4px 4px 0px rgba(26, 43, 75, 0.06);
			background-color: #fff;
			padding: 48rpx;
			box-sizing: border-box;
			margin-top: 24rpx;
			text-align: center;

			.title {
				width: 270rpx;
				height: 50rpx;
			}

			.content {
				.content-box {
					padding: 32rpx;
					box-sizing: border-box;
					background-color: #F3F2F6;
					border-radius: 16rpx;
					text-align: left;
					margin-top: 32rpx;
					border-image: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.4)) 2 2;
					box-shadow: 0px 4px 4px 0px rgba(26, 43, 75, 0.06);

					.top {
						display: flex;
						align-items: center;

						.avatar {
							width: 72rpx;
							height: 72rpx;
							border-radius: 50%;

							.img {
								width: 100%;
								height: 100%;
								border-radius: 50%;
							}
						}

						.title {
							margin-left: 20rpx;
							//border: 1px solid red;
							color: #292E33;
							width: 600rpx;
							font-family: PingFang SC, PingFang SC;
							font-weight: 600;
							font-size: 32rpx;
						}
					}

					.line {
						// margin: 32rpx 0 26rpx;
						margin: 10rpx;
						width: 558rpx;
						height: 2px;
						background-color: #F0F0F5;
					}

					.bottom {
						.text {
							color: #292E33;
							font-family: PingFang SC, PingFang SC;
							font-size: 28rpx;
							text-align: left;
							line-height: 48rpx;
							opacity: 0.6;
						}

						.person-box {
							display: flex;
							margin-top: 16rpx;

							.person {
								width: 40rpx;
								height: 40rpx;
								border-radius: 50%;
							}

							.person:nth-of-type(2) {
								transform: translateX(-10rpx);
							}

							.person:nth-of-type(3) {
								transform: translateX(-20rpx);
							}
						}
					}
				}
			}
		}
	}

	#head_img {
		margin: 10px auto;
		width: 270rpx;
		height: 50rpx;
	}
</style>